<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:p="http://primefaces.prime.com.tr/ui">
    <h:head>
        <title>Facelet Title</title>
    </h:head>
    <h:body>
        <p:messages id="statusMessages"/>
        <h:form>
            <h:outputText value="Company Name:"/>
            <h:inputText value="#{createNewCustomerManagedBean.customer.name}"/>
            <br/>
            <h:outputText value="Company Address:"/>
            <h:inputText value="#{createNewCustomerManagedBean.customer.address}"/>
            <br/>
            <h:outputText value="Company Email:"/>
            <h:inputText value="#{createNewCustomerManagedBean.customer.email}"/>
            <br/>
            <h:outputText value="Contact Person:"/>
            <h:inputText value="#{createNewCustomerManagedBean.customer.contactPerson}"/>
            <br/>
            <h:outputText value="Contact Number:"/>
            <h:inputText value="#{createNewCustomerManagedBean.customer.contactNumber}"/>
            <br/>
            <h:outputText value="Company Type:"/>
            <h:inputText value="#{createNewCustomerManagedBean.customer.companyType}"/>
            <br/>
            <h:outputText value="Company Status:"/>
            <h:inputText value="#{createNewCustomerManagedBean.customer.companyStatus}"/>
            <br/>
            
            <p:commandButton value="Save" ajax="true" update="statusMessages" actionListener="#{createNewCustomerManagedBean.saveNewCustomer}"/>   
        </h:form>
    </h:body>
</html>

